
const ySort = {

    //根据Y轴排序

    DoySort() {

        for (let fSort of rt.objects.f_ySort.instances()) {

            fSort.instVars.thisY = fSort.y

        }

        rt.sortZOrder(rt.objects.f_ySort.instances(), (a, b) => a.instVars.thisY - b.instVars.thisY)
    }
}

export default ySort